
<div class="h_a">
    菜品管理
</div>
<div class="table_full">
    <table class="table_list" width="100%">

        <col width="20%"/>
        <col width="20%"/>
        <col width="20%"/>
        <col width="20%"/>
        <col width="20%"/>
        <col/>
        <tbody class="goods_body">
        <tr>
            <td>ID</td>
            <td>菜品名</td>
            <td>价格</td>
            <td>备注</td>
            <td>已选数量</td>
        </tr>

        <?php if($goods_list):?>
            <?php foreach ($goods_list as $key=>$item):?>
                <tr>
                    <input type="hidden" name="gids[]" value="<?php echo $item['id'];?>">
                    <td><?php echo $item['id'];?></td>
                    <td><?php echo $item['name'];?></td>
                    <td><?php echo price_format($item['money']);?></td>
                    <td><?php echo $item['note'];?></td>
                    <td><i class="fa fa-minus-square js-minus user-icon"></i> <input type="text" data-price="<?php echo $item['money'];?>" style="width: 20px;margin: 0 3px;" name="gnums[]" class="input rounded js-item-good-input" value="<?php echo $order_goods[$item['id']]['number']?$order_goods[$item['id']]['number']:0;?>"><i class="fa fa-plus-square js-plus user-icon"></i> </td>
                </tr>
            <?php endforeach;?>
        <?php endif;?>
        </tbody>
    </table>

</div>

